package com.home.webapp.base.service;

import com.home.base.core.framework.msg.ServerResponse;
import com.home.common.framework.core.service.BaseService;
import com.home.common.model.CurrentUser;
import com.home.common.model.TreeNode;
import com.home.webapp.base.entity.BaseRoleMenu;

import java.util.List;


/**
 * Description: 菜单角色 service
 * Created by 王大宸 on 2020-10-05 23:28:38
 * Created with IntelliJ IDEA.
 */
public interface BaseRoleMenuService extends BaseService<BaseRoleMenu, String> {

    /***
     * 功能说明：获取菜单树
     *
     * @author 王大宸
     * @date 2020/10/7 17:54
     * @param roleId  角色id
     * @return com.home.common.framework.msg.ServerResponse<java.util.List < java.util.Map < java.lang.String, java.lang.Object>>>
     */
    ServerResponse<List<TreeNode>> menuTree(String roleId, CurrentUser user);

}
